﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Themes/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<Shop>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
    <%=Model.FullName%>---店铺首页
</asp:Content>
<asp:Content ID="CssContent" ContentPlaceHolderID="CssContent" runat="server">
	<link href="<%=Url.Content("~/Style/Store.css")%>" rel="stylesheet" type="text/css" />
</asp:Content>
<asp:Content ID="HeadContent" ContentPlaceHolderID="HeadContent" runat="server">

</asp:Content>
<asp:Content ID="MainContent" ContentPlaceHolderID="MainContent" runat="server">
	<div class="store">
		<div class="header">
			<a href="<%=Url.Action("Index", "Store", new { id = Model.ID })%>" class="logo">
                <img src="<%=Model.LogoURL%>" />
            </a>
			<div class="name"><%=Model.FullName%></div>
			<div class="domain">http://<%=Model.SecondlevelDomain%>.luko.cn</div>
		</div>
		<div class="nav">
			<dl>
				<dd class="select">店铺首页</dd>
                <dd><%=Html.ActionLink("店铺介绍", "Intro", "Store", new { id = Model.ID }, null)%></dd>
                <dd><%=Html.ActionLink("店铺动态", "News", "Store", new { id = Model.ID }, null)%></dd>
                <%--<dd><%=Html.ActionLink("报价单", "Price", "Store", new { id = Model.ID }, null)%></dd>--%>
			</dl>
		</div>
		<div class="content">
			<div class="left">
				<%Html.RenderPartial("StoreWidget", Model);%>

                <div class="widget_220 mt-15">
					<h3 ="title">产品分类</h3>
					<div class="wd_body">
                        <ul>
                            <li>靴子</li>
                        </ul>
                    </div>
				</div>

                <%Html.RenderPartial("StoreRecomGoods", Model);%>
			</div>
            
			<div class="right">
                <div id="moreinfo">
                    <h3 style="margin-top:0;"><div>所有产品</div></h3>
                    <div class="goods_list">
                    <%foreach (var item in Model.GetGoodsList(1, 20)){ %>
                    <dl>
                        <dt>
                            <a href="<%=Url.Action("Index", "Goods", new { id = item.ID })%>">
                                <img src="<%=item.GetMajorImages().FirstOrDefault().ImgURL%>" alt="" />
                            </a>
                        </dt>
                        <dd class="PName">
                            <%=Html.ActionLink(item.Title, "index", "goods", new { id = item.ID }, null)%>
                            <%if (item.IsRecommend){%><img src="/Style/Images/hot.jpg" alt="" /><%} %>
                        </dd>
                        <dd class="PPrice">
                            <span style="height:20px;margin: 0px;font-size:12px;padding:0;">￥</span>
                            <%=item.Price%>
                            <%=Html.ActionLink("下载图片", "ImageData", "Download", new { ID = item.ID }, new { target = "_blank" })%>
                        </dd>
                        <dd class="PIntro"><%=item.Tag%></dd>
                    </dl>
                    <%} %>
                    </div>
                    <div class="pager"><%=Html.Pager(1, 20, (int)Model.GetGoodsCount())%></div>
                </div>
			</div>
		</div>
	</div>
</asp:Content>
